const mongoose = require('mongoose');

const mongoosePaginate = require('mongoose-paginate');


const schema           = new mongoose.Schema({
    name    : String,
    password: String,
    age     : Number,
    birth   : String,
    salary  : Number,
    hobby   : Array,
    gender  : String,
    marital : String,
});

schema.plugin(mongoosePaginate);

const User = mongoose.model('User',schema);


module.exports = User;

